package com.zx.io;

import java.io.InputStream;

/**
 * @ProjectName: myjdbc
 * @Package: com.zx
 * @ClassName: io
 * @Author: xzl
 * @Description: 读取resources下文件
 * @Date: 2021/9/7 18:37
 */
public class Resources {

    /**
     * by路径 将配置文件加载成字节输入流存储在内存中
     * @param path:路径
     */
    public static InputStream getResourceAsSteam(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return  resourceAsStream;
    }
}
